Returns data about domain-based restriction for Hub access restriction methods providing authentication of user with user email.
Applies to:
- SAML - optional,
- Google OAuth - required.
Once set if visitor trying to sign-in has a domain reported by authentication method not matching any of the domains in domains whitelist, the access to Hub is not granted even if authentication method normally would grant access to this visitor.
Required to be enabled when using Google OAuth restriction method.
Security
ApiKeyAuth
- Main US regionhttps://subdomain-of-your-account.app.statushub.io/api/v3/hubs/{subdomain}/access_restriction/domains_whitelist
- EU regionhttps://subdomain-of-your-account.app-eu1.statushub.io/api/v3/hubs/{subdomain}/access_restriction/domains_whitelist
curl -i -X GET \
'https://subdomain-of-your-account.app.statushub.io/api/v3/hubs/{subdomain}/access_restriction/domains_whitelist?api_version=V3-R1' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'Response
{ "enabled": true, "domains_whitelist": [ "company.com", "another-domain.com" ] }